/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package knn;
import java.io.IOException;
import java.util.ArrayList;

/**
 *
 * @author Lenovo
 */
public class main_knn {
    public static void main (String args[]) throws IOException
    {
        KNN knn = new KNN ("C:/Users/Lenovo/Documents/NetBeansProjects/Topsus/data/car.data.txt", "C:/Users/Lenovo/Documents/NetBeansProjects/Topsus/data/car.data-test.txt");
        knn.classify();
        ArrayList<String> hasil = knn.get_hasil_inferensi();
        int i;

        for (i=0; i<hasil.size(); ++i)
            System.out.println("Record " + i + " = " + hasil.get(i));
    }
}
